GetEnumerator Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enumerates all of the items in the list, in order. The item at index 0 is enumerated first, then the item at index 1, and so on. If the items are added to or removed from the Deque during enumeration, the enumeration ends with an InvalidOperationException.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public override sealed IEnumerator<T> GetEnumerator()
Visual Basic (Declaration)
Public Overrides NotOverridable Function GetEnumerator As IEnumerator(Of T)
Visual C++
public:
virtual IEnumerator<T>^ GetEnumerator () override sealed

Return Value

An IEnumerator<T> that enumerates all the items in the list.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThe Deque has an item added or deleted during the enumeration.

See Also